home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Selection / Multimedia Selection Volume One - CD-ROM / MULTIMEDIA SELECTION____________.ISO / utils / test1a9z / test1a9z.me < prev   
Encoding:
Text File  |  1993-07-15  |  6.5 KB  |  124 lines

  1. Test1a9z - Version 0.03α Copyright (c) 1992 by Gerry Lowry
  2.  
  3. Function:  To test keyboard input and to set the DOS ERRORLEVEL
  4.  
  5.   Syntax:  Test1a9z [?|-?|/?|h|-h|/h|help|-help|/help]
  6.            Test1a9z [b|-b|/b|beep|-beep|/beep]
  7.                     [t[:nn]|-t[:nn]|/t[:nn]
  8.                     |timeout[:nn]|-timeout[:nn]|/timeout[:nn]]
  9.                        where "nn" is an integer from 1 to 99
  10.  
  11. Examples:  Test1a9z
  12.            Test1a9z -HELP
  13.            Test1a9z /?
  14.            Test1a9z h
  15.            Test1a9z BEEP
  16.            Test1a9z -timeout
  17.                     {Note:  Default time out is 10 seconds.}
  18.            Test1a9z /TIMEOUT:5
  19.            Test1a9z -b -t:60
  20.  
  21.  Results:  if no parameter is given, then Test1a9z waits for keyboard
  22.            input.  Subject to the DOS key pressed, Test1a9z sets the
  23.            DOS ERRORLEVEL as follows:
  24.              1 for '1', 2 for '2', 3 for '3', ... , 8 for '8', 9 for '9'
  25.              101 for 'a', 102 for 'b', 103 for 'c', ... , 126 for 'z'
  26.              101 for 'A', 102 for 'B', 103 for 'C', ... , 126 for 'Z'
  27.              201 for F1, 202 for F2, 203 for F3, ... , 210 for F10
  28.              211 for SHIFT+F1, 212 for SHIFT+F2,  ... , 220 for SHIFT+F10
  29.              221 for CTRL+F1, 222 for CTRL+F2,  ... , 230 for CTRL+F10
  30.              231 for ALT+F1, 232 for ALT+F2,  ... , 240 for ALT+F10
  31.  
  32.            The 'BEEP' option causes a sound to be heard.
  33.  
  34.            The 'TIMEOUT' option sets a DOS ERRORLEVEL of 254 if no
  35.            key is pressed within the default or specified interval.
  36.  
  37.            The 'BEEP' and 'TIMEOUT' options may both be specified
  38.            together.
  39.  
  40.      Use:  The program Test1a9z can be used in a DOS batch (*.BAT) file
  41.            as follows:
  42.  
  43.                :Test
  44.                ECHO Press C to run program CCCCCCCC
  45.                ECHO Press X to run program XXXXXXXX
  46.                ECHO Press Q to QUIT
  47.                Test1a9z
  48.                IF NOT ERRORLEVEL 104 IF ERRORLEVEL 103 GOTO :PICK_C
  49.                IF NOT ERRORLEVEL 125 IF ERRORLEVEL 124 GOTO :PICK_X
  50.                IF NOT ERRORLEVEL 118 IF ERRORLEVEL 117 GOTO :QUIT
  51.                ECHO Invalid choice, please choose again.
  52.                GOTO :Test
  53.                :PICK_C
  54.                CCCCCCCC
  55.                GOTO :QUIT
  56.                :PICK_X
  57.                XXXXXXXX
  58.                :QUIT
  59.  
  60.                            NO WARRANTY
  61. The program Test1a9z and any and all copies derived from it is licensed FREE
  62. OF CHARGE.  Test1a9z and all derived copies are provided with absolutely NO
  63. WARRANTY.  The author provides this program "AS IS" without warranty of
  64. any kind, either expressed or implied, including, but NOT limited to, any
  65. implied warranties of merchantability and/or fitness for any particular
  66. purpose.  ALL RISK as to the quality and performance of the program is with
  67. the user.  Thus, should this program prove defective, the user assumes any
  68. and all cost and consequences of any and all servicing, repair, or correction.
  69.  
  70.                             DISCLAIMER
  71. IN NO EVENT WILL THE AUTHOR NOR ANY OTHER PARTY WHO PARTICIPATES IN THE
  72. DISTRIBUTION OF THIS PROGRAM AS PERMITTED BELOW, BE LIABLE FOR DAMAGES,
  73. INCLUDING ANY LOST PROFITS, LOST MONIES, OR OTHER SPECIAL, INCIDENTAL, OR
  74. CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THIS PROGRAM
  75. (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE
  76. OR LOSSES SUSTAINED BY THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE
  77. WITH ANY OTHER PROGRAMS), EVEN IF YOU HAVE BEEN ADVISED OF THE POSSIBILITY
  78. OF SUCH DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY.
  79.  
  80.                     GENERAL PUBLIC LICENSE TO COPY
  81.   1. a) You may copy and distribute copies of this program in its executable
  82. form as you receive it, in any medium, provided that you do not in any way
  83. modify any such copy.  You may charge a fair distribution fee for the physical
  84. act of transferring a copy and for the cost of the medium.
  85.      b) You may at your option offer warranty protection in exchange for a fee.
  86. Such protection shall in no way be binding on the author of this program nor on
  87. any other party.
  88.   2. Mere aggregation of another unrelated program with this program on a
  89. volume of a storage or distribution medium does not bring the other program
  90. under the scope of these terms.
  91.   3. You may not copy, sublicense, distribute or transfer this program
  92. except as expressly provided under this License Agreement.  Any attempt
  93. otherwise to copy, sublicense, distribute or transfer this program is void and
  94. your rights to use the program under this License agreement shall be
  95. automatically terminated.  However, parties who have received computer
  96. software programs from you with this License Agreement will not have
  97. their licenses terminated so long as such parties remain in full compliance.
  98.   4. The user is welcome to use and/or share this program.  The user is
  99. forbidden to forbid anyone else to use and/or share this program.
  100.  
  101.                       AVAILABILITY OF SOURCE CODE
  102. As programs go, Test1a9z is somewhat trivial.  However, should the user
  103. wish to acquire the source code for the most recent version, please send
  104. ten dollars ($10.00) Canadian for shipment to any address in Canada and ten
  105. dollars ($10.00) U.S. for shipment to any address in the continental United
  106. States of America.  For shipment of source code to any address outside of
  107. Canada, the recipient is responsible for any duties and/or related costs of
  108. importation to her/his country.  Source code is shipped with both a listing
  109. and in machine readable format on a diskette.  Please specify one diskette
  110. format of 3½" (720K or 1.44MB) or 5¼" (360K or 1.2MB) and provide a legible
  111. address.  Please include a postal money order for the above specified amounts.
  112. [Do NOT mail cash.  C.O.D. orders NOT accepted.]  Make your money order
  113. payable to Gerry Lowry.  Mail your money order to:
  114. Gerry Lowry, P.O.Box 730, Postal Station "A", Toronto Ontario CANADA  M5W 1G2
  115.  
  116. The author has attempted to verify the execution of this software.  However,
  117. the pernicious nature of Murphy's Law being what it is, the author would
  118. greatly appreciate being notified of any anomalies which the user might
  119. discover.  The author also welcomes constructive criticism and suggestions
  120. for any enhancements.  The author makes no promise to make any modifications
  121. NOR does the author make any commitment to reply to any correspondence.  The
  122. above address may be used for all correspondence.
  123.                                                               {E.&.O.E.}
  124.